package com.e3.web.widget.client;

import com.e3.web.core.client.CommonMessages;

public class MyActionFactory {

	private static CommonMessages MESSAGES = CommonMessages.INSTANCE;
	
	public static BaseAction[] createCRUBActions(){
		return new BaseAction[]{
			createQueryAction(),
			createNewAction(),
			createModifyAction(),
			createDeleteAction()
			};
	}
	
	public static BaseAction createQueryAction(){
		return new BaseAction(MESSAGES.action_query());
	}
	
	public static BaseAction createNewAction(){
		return new BaseAction(MESSAGES.action_new());
	}
	
	public static BaseAction createModifyAction(){
		return new BaseAction(MESSAGES.action_modify());
	}
	
	public static BaseAction createDeleteAction(){
		return new BaseAction(MESSAGES.action_delete());
	}
	
	public static BaseAction createSaveAction(){
		return new BaseAction(MESSAGES.action_save());
	}
	
	public static BaseAction createCancelAction(){
		return new BaseAction(MESSAGES.action_cancel());
	}
}
